<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.web.galgame.cgs.CGEdit"/>
<script>
function galAnalyseBtn_click(form,page){
	
	var gameName = form.value("GAME_NAME");
	var gameNamePlus = form.value("GAME_NAME_PLUS");
	if(!Yacon.isEmpty(gameNamePlus)){
		gameName = gameName + "," + gameNamePlus;
	}
	
	Yacon.showModal({
		url: "netant/gamePage.jsp?gameName="+gameName.encode(),
		height: "600px",
		width: "1200px",
		close: "galAnalyseBtn_window_close"
	});
	
}

function galAnalyseBtn_window_close(windows,page){
	
	var form = page.find("galgameEditForm");
	
	if(!Yacon.isEmpty(windows.returnValue)){
		var sendSet = new Yacon.data.DataSet(page);
		sendSet.setWhereField("gameID",windows.returnValue);
		sendSet.switchMessage("gameSearch");
		
		if(sendSet.next()){
			
			//游戏简介
			form.value("GAME_INTRU",sendSet.getDataSetValue("GAME_INTRU"));			
			
			//游戏标签 - 去重
			form.value("GAME_TAGS",sendSet.getDataSetValue("GAME_TAGS"));
			
			//厂商名称
			form.value("GAME_FACTORY",sendSet.getDataSetValue("GAME_FACTORY"));
			
			//发布时间
			form.value("GAME_PRO_TIME",sendSet.getDataSetValue("GAME_PRO_TIME"));
					
			form.value("GAME_NAME_PLUS",sendSet.getDataSetValue("GAME_NAME_PLUS"));
			
			form.check("GAME_TYP",sendSet.getDataSetValue("GAME_TYP"));
					
			form.radio("GAME_VISUAL",sendSet.getDataSetValue("GAME_VISUAL"));
	
		}
	}
	
}
</script>